package com.lanou.service.impl;

import com.lanou.bean.ModuleInfo;
import com.lanou.mapper.ModuleInfoMapper;
import com.lanou.service.ModuleInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dllo on 18/3/10.
 */
@Service
public class ModuleInfoServiceImpl implements ModuleInfoService {

    @Resource
    private ModuleInfoMapper moduleInfoMapper;
    @Override
    public List<ModuleInfo> selectModule(String name) {
        return moduleInfoMapper.selectModule(name);
    }

    @Override
    public List<ModuleInfo> selectModuleByAdminId(int admin_id) {
        return null;
    }

    @Override
    public List<ModuleInfo> selectAllModule() {
        return moduleInfoMapper.selectAllModule();
    }
}
